/**
 * 
 */
package com.ljw.store.services;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import com.ljw.store.dao.AdminDao;
import com.ljw.store.entity.ItemType;
import com.login.gwj.domain.Admin;



/**
 * @author L1uj1awe1
 *
 */
@Transactional
public class AdminServiceImpl implements AdminService {
	@Resource
	AdminDao adminDao;
	/* (non-Javadoc)
	 * @see com.ljw.services.admin.AdminService#updateAdmin(com.ljw.entity.admin.Admin)
	 */
	public Admin updateAdmin(Admin admin) {
		return adminDao.updateAdmin(admin);
	}

	/* (non-Javadoc)
	 * @see com.ljw.services.admin.AdminService#searchStore(com.ljw.entity.admin.Admin)
	 */
	public List<Admin> searchStore(Admin admin) {
		return adminDao.searchStore(admin);
	}

	public List<ItemType> alltype() {
		// TODO Auto-generated method stub
		return adminDao.alltype();
	}

	public void addtype(String typename) {
		// TODO Auto-generated method stub
		adminDao.addtype(typename);
	}

	public void deteletype(String itemTypeId) {
		// TODO Auto-generated method stub
		adminDao.deteletype(itemTypeId);
	}

	public List<ItemType> alltypeBYid(String itemTypeId) {
		// TODO Auto-generated method stub
		return adminDao.alltypeBYid(itemTypeId);
	}

	public void updatetype(String typename, String itemTypeId) {
		// TODO Auto-generated method stub
		adminDao.updatetype(typename,itemTypeId);
	}

}
